package com.hualan.web;

import com.hualan.service.MyzixunService;
import com.hualan.util.ResultEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/myzixun")
public class MyzixunController {
    @Autowired
    private MyzixunService myzixunService;

    @RequestMapping("/chaxun")
    public ResultEntity listAll(Integer uid){
        return ResultEntity.ok(myzixunService.listAll(uid));
    }

    @RequestMapping("/chaxunwei")
    public ResultEntity listAllwei(Integer uid){
        return ResultEntity.ok(myzixunService.listAllwei(uid));
    }
}
